package com.ourteam.product.ui.domain;
/**
 * Template Name : DTO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Nov 30 16:49:33 CST
 * 2018 Auto Generate Date : 2018-12-14 15:15:31 Warning ! This file will be overwrite when
 * regenerate !
 */
import java.util.HashMap;
import java.util.Map;
import net.dao.IDataPopulateCallback;
import org.apache.commons.beanutils.BeanMap;
import org.apache.commons.lang.ArrayUtils;

public class ProductUIActionGroupRelateBean implements java.io.Serializable {

  private static Map<String, String> mappedDaoFields = new HashMap<String, String>();

  private com.ourteam.product.ui.dao.ProductUIActionGroupRelate productUIActionGroupRelate;

  protected BeanMap getBeanMap() {

    return new BeanMap(productUIActionGroupRelate);
  }

  static {
    mappedDaoFields.put("id", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.Id);

    mappedDaoFields.put(
        "actionGroupId", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.ActionGroupId);

    mappedDaoFields.put(
        "relatedActionId",
        com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.RelatedActionId);

    mappedDaoFields.put(
        "handler", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.Handler);

    mappedDaoFields.put("icon", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.Icon);

    mappedDaoFields.put(
        "labelText", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.LabelText);

    mappedDaoFields.put(
        "labelKey", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.LabelKey);

    mappedDaoFields.put(
        "confirmInfo", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.ConfirmInfo);

    mappedDaoFields.put(
        "confirmInfoKey", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.ConfirmInfoKey);

    mappedDaoFields.put(
        "lastModifyUser", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.LastModifyUser);

    mappedDaoFields.put(
        "lastModifyTime", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.LastModifyTime);

    mappedDaoFields.put(
        "sortIndex", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.SortIndex);

    mappedDaoFields.put("status", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.Status);

    mappedDaoFields.put(
        "remarks", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.Remarks);

    mappedDaoFields.put(
        "actionGroupCode",
        com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.ActionGroupCode);

    mappedDaoFields.put(
        "actionCode", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.ActionCode);

    mappedDaoFields.put(
        "actionType", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.ActionType);

    mappedDaoFields.put(
        "visibleScript", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.VisibleScript);

    mappedDaoFields.put(
        "listCode", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.ListCode);

    mappedDaoFields.put(
        "menuListId", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.MenuListId);

    mappedDaoFields.put(
        "disableScript", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.DisableScript);

    mappedDaoFields.put("style", com.ourteam.product.ui.dao.IProductUIActionGroupRelateDAO.Style);
  }

  public static String getMappedDAOField(String aAttrName) {
    return mappedDaoFields.get(aAttrName);
  }

  public ProductUIActionGroupRelateBean() {
    super();

    this.productUIActionGroupRelate = new com.ourteam.product.ui.dao.ProductUIActionGroupRelate();
  }

  public ProductUIActionGroupRelateBean(
      com.ourteam.product.ui.dao.ProductUIActionGroupRelate productUIActionGroupRelate) {
    super();

    this.productUIActionGroupRelate = productUIActionGroupRelate;
  }

  public com.ourteam.product.ui.dao.ProductUIActionGroupRelate
      convertToProductUIActionGroupRelate() {
    return this.productUIActionGroupRelate;
  }

  public com.ourteam.product.ui.dao.ProductUIActionGroupRelate convertTo() {
    return this.productUIActionGroupRelate;
  }

  /**
   * Get id
   *
   * @return long
   */
  public long getId() {
    return (long) this.productUIActionGroupRelate.getId();
  }

  /**
   * Set id
   *
   * @parameter long
   */
  public void setId(long id) {

    this.productUIActionGroupRelate.setId(id);
  }

  /**
   * Get actionGroupId
   *
   * @return long
   */
  public long getActionGroupId() {
    return (long) this.productUIActionGroupRelate.getActionGroupId();
  }

  /**
   * Set actionGroupId
   *
   * @parameter long
   */
  public void setActionGroupId(long actionGroupId) {

    this.productUIActionGroupRelate.setActionGroupId(actionGroupId);
  }

  /**
   * Get relatedActionId
   *
   * @return long
   */
  public long getRelatedActionId() {
    return (long) this.productUIActionGroupRelate.getRelatedActionId();
  }

  /**
   * Set relatedActionId
   *
   * @parameter long
   */
  public void setRelatedActionId(long relatedActionId) {

    this.productUIActionGroupRelate.setRelatedActionId(relatedActionId);
  }

  /**
   * Get handler
   *
   * @return String
   */
  public String getHandler() {
    return (String) this.productUIActionGroupRelate.getHandler();
  }

  /**
   * Set handler
   *
   * @parameter String
   */
  public void setHandler(String handler) {

    this.productUIActionGroupRelate.setHandler(handler);
  }

  /**
   * Get icon
   *
   * @return String
   */
  public String getIcon() {
    return (String) this.productUIActionGroupRelate.getIcon();
  }

  /**
   * Set icon
   *
   * @parameter String
   */
  public void setIcon(String icon) {

    this.productUIActionGroupRelate.setIcon(icon);
  }

  /**
   * Get labelText
   *
   * @return String
   */
  public String getLabelText() {
    return (String) this.productUIActionGroupRelate.getLabelText();
  }

  /**
   * Set labelText
   *
   * @parameter String
   */
  public void setLabelText(String labelText) {

    this.productUIActionGroupRelate.setLabelText(labelText);
  }

  /**
   * Get labelKey
   *
   * @return String
   */
  public String getLabelKey() {
    return (String) this.productUIActionGroupRelate.getLabelKey();
  }

  /**
   * Set labelKey
   *
   * @parameter String
   */
  public void setLabelKey(String labelKey) {

    this.productUIActionGroupRelate.setLabelKey(labelKey);
  }

  /**
   * Get confirmInfo
   *
   * @return String
   */
  public String getConfirmInfo() {
    return (String) this.productUIActionGroupRelate.getConfirmInfo();
  }

  /**
   * Set confirmInfo
   *
   * @parameter String
   */
  public void setConfirmInfo(String confirmInfo) {

    this.productUIActionGroupRelate.setConfirmInfo(confirmInfo);
  }

  /**
   * Get confirmInfoKey
   *
   * @return String
   */
  public String getConfirmInfoKey() {
    return (String) this.productUIActionGroupRelate.getConfirmInfoKey();
  }

  /**
   * Set confirmInfoKey
   *
   * @parameter String
   */
  public void setConfirmInfoKey(String confirmInfoKey) {

    this.productUIActionGroupRelate.setConfirmInfoKey(confirmInfoKey);
  }

  /**
   * Get lastModifyUser
   *
   * @return String
   */
  public String getLastModifyUser() {
    return (String) this.productUIActionGroupRelate.getLastModifyUser();
  }

  /**
   * Set lastModifyUser
   *
   * @parameter String
   */
  public void setLastModifyUser(String lastModifyUser) {

    this.productUIActionGroupRelate.setLastModifyUser(lastModifyUser);
  }

  /**
   * Get lastModifyTime
   *
   * @return java.util.Date
   */
  public java.util.Date getLastModifyTime() {
    return (java.util.Date) this.productUIActionGroupRelate.getLastModifyTime();
  }

  /**
   * Set lastModifyTime
   *
   * @parameter java.util.Date
   */
  public void setLastModifyTime(java.util.Date lastModifyTime) {

    this.productUIActionGroupRelate.setLastModifyTime(lastModifyTime);
  }

  /**
   * Get sortIndex
   *
   * @return int
   */
  public int getSortIndex() {
    return (int) this.productUIActionGroupRelate.getSortIndex();
  }

  /**
   * Set sortIndex
   *
   * @parameter int
   */
  public void setSortIndex(int sortIndex) {

    this.productUIActionGroupRelate.setSortIndex(sortIndex);
  }

  /**
   * Get status
   *
   * @return String
   */
  public String getStatus() {
    return (String) this.productUIActionGroupRelate.getStatus();
  }

  /**
   * Set status
   *
   * @parameter String
   */
  public void setStatus(String status) {

    this.productUIActionGroupRelate.setStatus(status);
  }

  /**
   * Get remarks
   *
   * @return String
   */
  public String getRemarks() {
    return (String) this.productUIActionGroupRelate.getRemarks();
  }

  /**
   * Set remarks
   *
   * @parameter String
   */
  public void setRemarks(String remarks) {

    this.productUIActionGroupRelate.setRemarks(remarks);
  }

  /**
   * Get actionGroupCode
   *
   * @return String
   */
  public String getActionGroupCode() {

    return (String) this.productUIActionGroupRelate.getActionGroupCode();
  }

  /**
   * Get actionCode
   *
   * @return String
   */
  public String getActionCode() {

    return (String) this.productUIActionGroupRelate.getActionCode();
  }

  /**
   * Get actionType
   *
   * @return String
   */
  public String getActionType() {

    return (String) this.productUIActionGroupRelate.getActionType();
  }

  /**
   * Get visibleScript
   *
   * @return String
   */
  public String getVisibleScript() {
    return (String) this.productUIActionGroupRelate.getVisibleScript();
  }

  /**
   * Set visibleScript
   *
   * @parameter String
   */
  public void setVisibleScript(String visibleScript) {

    this.productUIActionGroupRelate.setVisibleScript(visibleScript);
  }

  /**
   * Get listCode
   *
   * @return String
   */
  public String getListCode() {

    return (String) this.productUIActionGroupRelate.getListCode();
  }

  /**
   * Get menuListId
   *
   * @return long
   */
  public long getMenuListId() {
    return (long) this.productUIActionGroupRelate.getMenuListId();
  }

  /**
   * Set menuListId
   *
   * @parameter long
   */
  public void setMenuListId(long menuListId) {

    this.productUIActionGroupRelate.setMenuListId(menuListId);
  }

  /**
   * Get disableScript
   *
   * @return String
   */
  public String getDisableScript() {
    return (String) this.productUIActionGroupRelate.getDisableScript();
  }

  /**
   * Set disableScript
   *
   * @parameter String
   */
  public void setDisableScript(String disableScript) {

    this.productUIActionGroupRelate.setDisableScript(disableScript);
  }

  /**
   * Get style
   *
   * @return String
   */
  public String getStyle() {
    return (String) this.productUIActionGroupRelate.getStyle();
  }

  /**
   * Set style
   *
   * @parameter String
   */
  public void setStyle(String style) {

    this.productUIActionGroupRelate.setStyle(style);
  }

  public int hashCode() {
    return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
  }

  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    } // end if

    if ((obj instanceof ProductUIActionGroupRelateBean) == false) {
      return false;
    } // end if

    ProductUIActionGroupRelateBean other = (ProductUIActionGroupRelateBean) obj;

    boolean isEqual = false;

    com.ourteam.product.ui.dao.ProductUIActionGroupRelate tempProductUIActionGroupRelate =
        other.convertToProductUIActionGroupRelate();

    if (tempProductUIActionGroupRelate == null || this.productUIActionGroupRelate == null) {
      isEqual = false;
    } else if (tempProductUIActionGroupRelate == this.productUIActionGroupRelate
        || tempProductUIActionGroupRelate.equals(this.productUIActionGroupRelate)) {
      isEqual = true;
    } else {
      isEqual = false;
    }

    return isEqual;
  }

  public static ProductUIActionGroupRelateBean[] toArray(
      com.ourteam.product.ui.dao.ProductUIActionGroupRelate[] aProductUIActionGroupRelates) {

    return toArray(aProductUIActionGroupRelates, null);
  }

  public static ProductUIActionGroupRelateBean[] toArray(
      com.ourteam.product.ui.dao.ProductUIActionGroupRelate[] aProductUIActionGroupRelates,
      IDataPopulateCallback aCallBack) {

    if (ArrayUtils.isEmpty(aProductUIActionGroupRelates)) {
      return new ProductUIActionGroupRelateBean[0];
    }

    int length = aProductUIActionGroupRelates.length;

    ProductUIActionGroupRelateBean[] beans = new ProductUIActionGroupRelateBean[length];

    for (int i = 0; i < length; i++) {
      beans[i] = new ProductUIActionGroupRelateBean(aProductUIActionGroupRelates[i]);
      if (aCallBack != null) {
        aCallBack.populate(beans[i], new Object[] {aProductUIActionGroupRelates[i]});
      }
    }

    return beans;
  }
}
